package com.admin.kotlintest.activity.setting

import cn.bmob.v3.Bmob
import cn.bmob.v3.BmobUser
import com.admin.bombtest.LoginActivity
import com.admin.kotlintest.R
import com.admin.kotlintest.base.BaseActivity
import com.admin.kotlintest.config.MyApplication
import kotlinx.android.synthetic.main.activity_mine.*
import org.jetbrains.anko.startActivity

/**
 * Created by 吴昶 on 2018/4/20.
 */
class MineActivity:BaseActivity(){
    override fun bindLayout(): Int {
        return R.layout.activity_mine
    }

    override fun initData() {

    }

    override fun initEvent() {
        linear_login_out.setOnClickListener {
            BmobUser.logOut()
            MyApplication.finishAllActivity()
            startActivity<LoginActivity>()
            finish()
        }
    }


}